/*
 * GYObject.cpp
 *
 *  Created on: 2015-9-26
 *      Author: gy
 */

#include "GYObject.h"

GYObject::GYObject():m_iRef(1)
{

}

GYObject::~GYObject()
{

}

void GYObject::Retain()
{
	m_iRef++;
}

void GYObject::Release()
{
	m_iRef--;
	if (m_iRef <= 0)
	{
		delete this;
	}
}
